newBuilder

public static Cookie.Builder newBuilder(String domain)

Creates a new Cookie builder.

Return

a new Cookie.Builder instance

Parameters

domain

a domain this cookie belongs to. Please note, the domain is also required for cookies with __Host prefix.

Throws

if the domain is blank or empty